<!DOCTYPE html>
<html lang="en"  xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Регистрация</title>
    <div th:replace="layouts/favicon :: favicon"></div>
    <link rel="stylesheet" th:href="@{/styles/main.css}">

</head>
<body>
<div th:replace="layouts/header :: header"></div>

<main class="container">

    <form class="form" method="post" th:action="@{/reg}">
        <h1>Регистрация</h1>
        <input type="text" name="username" placeholder="Введите логин">
        <input type="email" name="email" placeholder="Введите email">
        <input type="password" name="password" placeholder="Введите пароль"><br>
        <div class="error" th:text="${error}"></div>
        <button class="button" type="submit">Зарегистрироваться</button>
    </form>

</main>


</body>
</html>